package com.fcat.common.user.config;

/**
 * Application constants.
 */
public final class Constants {

    public static final String APP_NAME = "user_center";

    //token存放在Header里的key
    public static final String HEADER_TOKEN_KEY = "Authorization";

    /****************************** 操作类型 ************************************/
    public static final int OPRATE_LOGIN = 0;
    public static final int OPRATE_SELECT = 1;
    public static final int OPRATE_CREATE = 2;
    public static final int OPRATE_UPDATE = 3;
    public static final int OPRATE_DELETE = 4;

    /*******************************成功失败*******************************************/
    public static final String SUCCESS = "1";
    public static final String FAILURE = "0";


    /************************** 用户 Attributes key start *************************************/

    public static final String SEX = "sex";
    public static final String PHONE = "phone";
    public static final String WORKNATURE = "workNature";
    public static final String POLICENO = "policeNo";
    public static final String AVATARURL = "avatarUrl";
    public static final String ISFIRST = "isFirst";
    public static final String[] USER_ATTRS = new String[]{SEX, PHONE, WORKNATURE, POLICENO, AVATARURL, ISFIRST};
    public static final String IP = "ip";
    public static final String VERIFYIP = "verifyIp";


    /************************** 用户 Attributes key end *************************************/

    /**
     * 男
     */
    public static final String MAN = "0";

    /**
     * 女
     */
    public static final String WOMEN = "1";

    /**
     * 民警
     */
    public static final String MINJING = "1";

    /**
     * 协警
     */
    public static final String XIEJING = "0";

    /******************************** 是  否 **************************************/
    public static final String TRUE = "true";
    public static final String FALSE = "false";


    public static final String GROUP_ROLE_FIX = "group_";

    public static final String CLIENT_ID="client_id";
    public static final String USERNAME="username";
    public static final String PASSWORD="password";
    public static final String GRANT_TYPE="grant_type";
    public static final String REFRESH_TOKEN="refresh_token";


    private Constants() {
    }
}
